<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>


<div class="dataTable" style="clear: both;">
    <table>         
        <tr>
            <th class="w2" width="5%" nowrap>ID</th>
            <th class="w3" width="12%" nowrap>用户名</th>
            <th class="w4" width="12%" nowrap>email</th>
            <th class="w5" width="12%" nowrap>年费开始时间</th>
            <th class="w6" width="12%" nowrap>最后登录时间</th>
            <th class="w7" width="5%" nowrap>仓库地址</th>
            <th class="w8" width="5%" nowrap>成长值</th>
            <th class="w9" width="5%" nowrap>余额</th>
            <th class="w10" width="5%" nowrap>登录次数</th>
            <th class="w11" width="10%" nowrap>最后登录IP</th>
            <th class="w10" width="10%" nowrap>是否过期</th>
        </tr>  

        <?php
		$up_dq = date('Y-m-d', strtotime('-12 month'));
        if ($this->userlist) {
            foreach ($this->userlist as $value) {
					?>
                <tr>
                    <td class="w2"><?php echo $value['id']; ?></td>
                    <td class="w3"><a href="/admini/manageuser/userdetail/id/<?php echo $value['id'];?>" class="indexa"><?php echo $value['nikename']; ?></a></td>
                    <td class="w4"><?php echo htmlspecialchars( $value['email']); ?></td>
                    <td class="w5"><?php echo $value['dateUp']; ?></td>
                    <td class="w6"><?php echo $value['lastLogin']; ?></td>
                    <td class="w7"><?php echo $value['storeno']; ?></td>
                    <td class="w8"><?php echo $value['score']!=''?$value['score']:0;?></td>
                    <td class="w9"><?php echo $value['money']!=''?$value['money']:0;?></td>
                    <td class="w10"><?php echo $value['logintimes']; ?></td>
                    <td class="w11"><?php echo $value['loginip']; ?></td>
            		<td class="w10" width="10%" nowrap><?php echo $value['dateUp'] > $up_dq?'否':'是';?></td>
                </tr>
        <?php
    }
}
?>
    </table>
</div>
<div class="toolbar">  
	<div style=" float:left; color:red;">会员总数：<?php echo $this->size;?></div>
    <?php echo $this->partial('paging.phtml', array("pages" => $this->userlistAll,'')); ?>
</div>
